﻿validationApp.factory("EventsService", function ($http, $q) {
    return {
        addUser: function (user) {
            var deferred = $q.defer();
            $http({ method: 'POST', url: '/Register/AddUser', data: user }).success(deferred.resolve).error(deferred.reject);
            return deferred.promise;
        }
    }
});